Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Empty??

So, I did as suggested and the messagebox is displaying the message that corresponds to the Else statement, but there's no text in the messagebox. WHAT? The field I'm after is the ShortName field in the person doc of the NAB, which I have confirmed is a text list containing multiple entries.)

The relevant segment of my code reads:

Dim doc As NotesDocument
Dim item As NotesItem
Set item = doc.GetFirstItem( "ShortName" )
If ( item Is Nothing ) Then
Messagebox( "There is no short name item on the document." )
Else
Messagebox( _
"The short name item on the document has the value: " _
+ item.Text )
End If
If item.Values(0)<>"" Then
....and it continues from there ...

The prompt reads, "The short name item on the document has the value:" with nothing else. Then it throws an 'Object variable not set' error at the line that reads, If item.Values(0)<>"" Then

I've also tried swapping the ShortName for the InternetAddress field, which is a text string (not list) with the same results. It's so weird. Anyone have any ideas?


Feedback response number WEBBAU8KWT created by ~Phil Refanaskioden on 12/20/2017

Persnickety LotusScript Error (~Phil Refanaski... 18.Dec.17)
. . no problem. (~Sigmund Umwema... 18.Dec.17)
. . You want to test if item is empty (~Fritz Ekfoober... 18.Dec.17)
. . . . Error trap (~Sean Eljumigon... 19.Dec.17)
. . . . Empty?? (~Phil Refanaski... 20.Dec.17)
. . . . . . Inspect using debugger (~Lily Minkitexf... 20.Dec.17)
. . . . . . . . It's there alright, but not seen? (~Phil Refanaski... 21.Dec.17)
. . . . . . . . . . I wonder if it being summary protec... (~Fritz Ekfoober... 21.Dec.17)
. . . . . . . . . . . . Access Level = Manager (~Phil Refanaski... 21.Dec.17)
. . . . . . . . . . Look further at the field / item (~Lily Minkitexf... 22.Dec.17)
. . . . . . . . . . . . Check all documents (~Lorraine Nimji... 1.Feb.18)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS